package cn.v2tila.rsosa.management.service.serviceImpl;

import cn.v2tila.rsosa.management.entity.SchoolEntity;
import cn.v2tila.rsosa.management.jpa.SchoolJPA;
import cn.v2tila.rsosa.management.service.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author v2tila on 0:36 2019/2/25
 */
@Service
public class SchoolServiceImpl implements SchoolService {
    @Autowired
    private SchoolJPA schoolJPA;

    public SchoolEntity findByName(String name) {

        return schoolJPA.findByName(name);
    }

    public SchoolEntity findByNo(String no) {
        return schoolJPA.findByNo(no);
    }
}
